CREATE TABLE [ext].[flyer]
(
[id_flyer] [int] NOT NULL IDENTITY(1, 1),
[id_evento] [int] NOT NULL,
[flyer_ole] [image] NOT NULL,
[descricao] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [ext].[flyer] ADD CONSTRAINT [PK_flyer] PRIMARY KEY CLUSTERED  ([id_flyer]) ON [PRIMARY]
GO
ALTER TABLE [ext].[flyer] ADD CONSTRAINT [FK_flyer_evento] FOREIGN KEY ([id_evento]) REFERENCES [ext].[evento] ([id_evento])
GO
